/* 公共样式 */
body,
button,
dd,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: tomato;
}

button,
input {
  outline: none;
  border: none;
}

i,
em {
  font-style: normal;
}

html,
body {
  /* 设置基准1rem = 10px */
  font-size: 10px !important;
}
/* 兼容不同设备 */
/* iphone6/7/8 */
@media screen and(min-width:375px) {
  html,
  body {
    font-size: 10px !important;
  }
}

/* iphone6p/7p/8p */
@media screen and(min-width:414px) {
  html,
  body {
    font-size: 11.04px !important;
  }
}

/* ipad */
@media screen and(min-width:768px) {
  html,
  body {
    font-size: 20.48px !important;
  }
}